package routers

import (
	"github.com/gin-gonic/gin"
	"muziai-server/api"
	"muziai-server/middleware"
)

func ImageRouter(r *gin.RouterGroup) {
	middleware := middleware.MiddlewareAuth{}
	app := api.ApiApp.ImageApi
	r.POST("image", middleware.MiddlewareAuth(), app.ImageCreateView)
	r.GET("image", middleware.MiddlewareAuth(), app.ImageListView)
	r.DELETE("image", middleware.MiddlewareAuth(), app.ImageRemoveView)

}
